<template>
  <div v-if="a === 2" class="notice">
    nihao
  </div>
  <div v-else>
  </div>
</template>

<script setup lang="ts">
// @ts-ignore
import { ref } from 'vue'


const a = ref(2)


</script>

<style scoped>
.notice {
  width: 100%;
  height: 80px;
  background: #689e61;
  margin-bottom: 10px;
}

</style>